package object;

public class ObjectDemo {
    public static void main(String[] args) {
        Point p = new Point(100,200);
        System.out.println(p);
        System.out.println(p.toString());
        Point m = new Point(100,200);
        System.out.println(m);
        p.equals(p.equals(m));

        String s1 = new String("123");
        String s2 = new String("123");
        System.out.println(s1.equals(s2));
        StringBuilder builder1 = new StringBuilder("456");
        StringBuilder builder2 = new StringBuilder("456");
        System.out.println(builder1.equals(builder2));

        System.out.println(s1.equals(builder1));

    }
}
